function getPoint() {
    const x = 1;
    const y = 10;
    return { x, y };
    // return {
    //     x: x,
    //     y: y
    // }
}

console.log(getPoint());

let propKey = 'kfm';
let obj = {
    [propKey]: true,
    ['a' + 'bc']: 123
};

console.log(obj);

let arr = ['a', 'b', 'c'];

// for(let item in arr){
//     console.log(item);
// }

for (let item of arr) {
    console.log(item);
}


let obj2 = {
    name: 'zs',
    fun: () => {
        console.log(this);
    }
}

console.log(obj2);
let f = obj2.fun;

// f();

document.querySelector("#button").onclick = f;